#ifndef HTTPENGINE_H
#define HTTPENGINE_H

#include <QtNetwork/QNetworkAccessManager>
#include <QUrl>
#include <QtNetwork/QNetworkRequest>
#include <QtNetwork/QNetworkReply>
#include <QTimer>


class HttpEngine
{
public:
    HttpEngine();
    QNetworkAccessManager* nam;
    QTimer* timerWeb;

    void sendTemperatureToWeb(double temperature, int aireStatus);
    void start();
    void stop();

public slots:
    void finishedSlot(QNetworkReply* reply); //respuesta al get

};

#endif // HTTPENGINE_H
